package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;

import com.ruoyi.buss.qmcy.domain.QmcyCustZhjy;
import com.ruoyi.buss.qmcy.mapper.QmcyCustZhjyMapper;
import com.ruoyi.buss.qmcy.service.IQmcyCustZhjyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 账户交易Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-28
 */
@Service
public class QmcyCustZhjyServiceImpl implements IQmcyCustZhjyService
{
    @Autowired
    private QmcyCustZhjyMapper qmcyCustZhjyMapper;

    /**
     * 查询账户交易
     * 
     * @param zh 账户交易ID
     * @return 账户交易
     */
    @Override
    public QmcyCustZhjy selectQmcyCustZhjyById(String zh)
    {
        return qmcyCustZhjyMapper.selectQmcyCustZhjyById(zh);
    }

    /**
     * 查询账户交易列表
     * 
     * @param qmcyCustZhjy 账户交易
     * @return 账户交易
     */
    @Override
    public List<QmcyCustZhjy> selectQmcyCustZhjyList(QmcyCustZhjy qmcyCustZhjy)
    {
        return qmcyCustZhjyMapper.selectQmcyCustZhjyList(qmcyCustZhjy);
    }

    /**
     * 新增账户交易
     * 
     * @param qmcyCustZhjy 账户交易
     * @return 结果
     */
    @Override
    public int insertQmcyCustZhjy(QmcyCustZhjy qmcyCustZhjy)
    {
        return qmcyCustZhjyMapper.insertQmcyCustZhjy(qmcyCustZhjy);
    }

    /**
     * 修改账户交易
     * 
     * @param qmcyCustZhjy 账户交易
     * @return 结果
     */
    @Override
    public int updateQmcyCustZhjy(QmcyCustZhjy qmcyCustZhjy)
    {
        return qmcyCustZhjyMapper.updateQmcyCustZhjy(qmcyCustZhjy);
    }

    /**
     * 批量删除账户交易
     * 
     * @param zhs 需要删除的账户交易ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustZhjyByIds(String[] zhs)
    {
        return qmcyCustZhjyMapper.deleteQmcyCustZhjyByIds(zhs);
    }

    /**
     * 删除账户交易信息
     * 
     * @param zh 账户交易ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustZhjyById(String zh)
    {
        return qmcyCustZhjyMapper.deleteQmcyCustZhjyById(zh);
    }
}
